groovy, merge two lists : listA is [[Name: mr good, note: good, rating:9], [Name: mr bad, note: bad,

Posted by user311884 on Stack Overflow See other posts from Stack Overflow or by user311884
Published on 2010-04-08T07:13:43Z Indexed on 2010/04/09 11:43 UTC
Read the original article Hit count: 720

Filed under:
|
|
|

I have two lists:

listA: 
[[Name: mr good, note: good,rating:9], [Name: mr bad, note: bad, rating:5]] 

listB: 
[[Name: mr good, note: good,score:77], [Name: mr bad, note: bad, score:12]]

I want to get this one

listC:
[[Name: mr good, note: good,, rating:9, score:77], [Name: mr bad, note: bad, rating:5,score:12]] 

how could I do it ?

thanks.

© Stack Overflow or respective owner

Related posts about groovy

Related posts about list